package ecnu.ecgbackend.service;

import com.baomidou.mybatisplus.extension.service.IService;
import ecnu.ecgbackend.entity.RawData;
import ecnu.ecgbackend.entity.RawDataFragment;
import ecnu.ecgbackend.utils.Result;
import ecnu.ecgbackend.vo.PatientArtificialVo;
import org.springframework.web.multipart.MultipartFile;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface DiagnosisFileService {
    public void saveFragmentsToFile(String filePath, List<RawDataFragment> rawDataFragments) throws IOException;
    public Result uploadChunk(Integer index, String fileName, Integer interval,
                              Integer length, MultipartFile multipartFile);
    public Result mergeChunk(String fileName,String category) throws IOException;
    public Result getDataSegment(String rawDataId,Integer startTime) throws IOException;
    public Result getDataSample(String fileName,Integer index) throws IOException;
    public List<String> getFileList();
    public Map<String,Object> getFileInfo(String rawDataId);
}
